/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.mail.config;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;

import java.io.Serializable;

/**
 * <b>(MailSenderProperties)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/1/19
 */
@Data
@Component
@FieldDefaults(level = AccessLevel.PRIVATE)
public class MailSenderProperties implements Serializable {
    @Inject("${hotpot.component.mail.sender.host:smtp.feishu.cn}")
    String  host;
    @Inject("${hotpot.component.mail.sender.port:465}")
    int     port;
    @Inject("${hotpot.component.mail.sender.username:service@rearch.cn}")
    String  username;
    @Inject("${hotpot.component.mail.sender.password:IY0TQuVmUAqjurFG}")
    String  password;
    @Inject("${hotpot.component.mail.sender.defaultEncoding:UTF-8}")
    String  defaultEncoding;
    @Inject("${hotpot.component.mail.sender.sessionTimeout:3000}")
    int     sessionTimeout;
    @Inject("${hotpot.component.mail.sender.debug:true}")
    boolean debug;
}